package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._02策略模式._5商品价格策略模式;

/**
 * @ClassName CashContext
 * @Description TODO
 * @Author zero
 * @DATE 2023/7/9 11:56 PM
 * @Version 1.0
 */
public class CashContext {
    private CashSuper cashSuper;

    public CashContext(CashSuper cashSuper) {
        this.cashSuper = cashSuper;
    }

    public double getResult(double price, int num) {
        return cashSuper.acceptCash(price,num);
    }
}
